package io.seata.samples.integration.storage.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.seata.samples.integration.entity.TStorage;
import io.seata.samples.integration.service.ITStorageService;
import io.seata.samples.integration.storage.mapper.TStorageMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * <p>
 *  库存服务实现类
 * </p>
 *
 * * @author lidong
 * @since 2019-09-04
 */
@Service
@Transactional
public class TStorageServiceImpl extends ServiceImpl<TStorageMapper, TStorage> implements ITStorageService {


    @Override
    public int decreaseStorage(Integer id, int count) {

        return  baseMapper.decreaseStorage(id,count);
    }
}
